import request from '@/ya/request';

const LoginApi = {
	// 登录
	loginPost: (data) => {
		return request({
			url: '/api/auth/login',
			method: 'POST',
			data,
			custom: {
				showLoading: false,
				auth: false,
				showError: false, // 不展示错误提示
			},
		});
	},
	// 获取用户信息
	getUserInfo: () => {
		return request({
			url: '/system/dict-data/getDict',
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
				showError: false, // 不展示错误提示
			},
		});
	},
};

export default LoginApi;